# Linux version

.SUFFIXES:
.SUFFIXES: .cpp .obj .o .c

CPP = g++ -m64

INC_DIR = -I../../inc/asio_1.18.0 \
-I../../inc/tcpnet 

LIB_DIR = -L../../lib

CPPDEFS = -O2 -Wall -fPIC -Wno-deprecated -std=c++11

LIBS = -ldl -lpthread -ltcpnet

.cpp.o:
	$(CPP) -c $(CPPDEFS) $(INC_DIR) $< -o $@

.c.o:
	$(CPP) -c $(CPPDEFS) $(INC_DIR) $< -o $@

OBJS = \
client.o


all : client 
	
client : $(OBJS)
	$(CPP) -o $@ $(LIB_DIR) $(CPPDEFS) $(OBJS) $(LIBS)
	mv $@ ../../run
	
clean:
	rm *.o

